package main

import "sync"

type LockGuardMutex struct {
	mutex *sync.Mutex
}

func NewLockGuardMutex(mu *sync.Mutex) *LockGuardMutex {
	mu.Lock()
	return &LockGuardMutex{mutex: mu}
}

func (g *LockGuardMutex) Unlock() {
	defer g.Unlock()
}
